﻿using UnityEngine;
using System.Collections;

public class zhunxing : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}


    public int zhunxingsize = 15;
    public Texture2D texture;
    // Use this for initialization
    void OnGUI()
    {
        


        Rect rect = new Rect(Input.mousePosition.x - (zhunxingsize / 2),

        Screen.height - Input.mousePosition.y - (zhunxingsize / 2),

        zhunxingsize, zhunxingsize);
        //Debug.Log(zhunxingsize);
        GUI.DrawTexture(rect, texture);

        GUIStyle style = new GUIStyle();
        style.fontSize = 10;
        style.alignment = TextAnchor.UpperCenter;
        style.normal.textColor = new Color(0, 0, 0);
        GUI.Label(new Rect(100,0,200,100),"按U切换第一人称，按H切换第一人称，掉下去算输，消灭所有人算赢。", style);
    }
}
